package com.feri.cloudlike.provider.controller;


import com.feri.cloudlike.common.dto.LikeAddDto;
import com.feri.cloudlike.common.vo.R;
import com.feri.cloudlike.provider.service.intf.LikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * projectName: Cloudlike
 * author: CGY
 * time: 2020/10/30 17:50
 * description:
 */
@RestController
@RequestMapping("/provider/like")//多级路径
public class LikeController {
    @Autowired
    private LikeService service;
    //点赞
    @PostMapping("dz.do")
    public R dz(@RequestBody LikeAddDto dto){
        return service.likev1(dto);
    }
    //查询
    @GetMapping("count.do")
    public R all(){
        return service.queryCount();
    }
}
